package com.example.skudemo.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import net.minidev.json.annotate.JsonIgnore;

import java.util.Date;


@Data
public class BaseEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

//    @TableField(fill= FieldFill.INSERT)
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone= "GMT +8")
    private Date createdAt;
//    @TableField(fill= FieldFill.UPDATE)
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT +8")
    private Date updatedAt;

    @TableLogic
    @JsonIgnore
    private Date deletedAt;
}





